import Vue from 'vue'
import App from './App'
import router from './router'
import store from '@/store/index';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import '@/styles/index.scss';
import '@/utils/validator';
import '@/utils/index';

import hmtPageView from '@/utils/hmt.js';
import '@/assets/iconfont/iconfont';
import ShowLoading from '@/components/common/loading';
import filter from "@/utils/filter";
import IconSvg from '@/components/common/Icon-svg';
import LltAlert from '@/components/common/alert/index';
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'



Vue.use(VueAwesomeSwiper)
Vue.config.productionTip = false
Vue.component('icon-svg', IconSvg)
Vue.component('show-loading', ShowLoading)
Vue.use(ElementUI);
Vue.mixin(filter);
Vue.use(LltAlert);

router.afterEach((to, from) => {
  window.scrollTo(0,0);
  hmtPageView(to,from);
});


new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
